<!DOCTYPE html>
<html>
<head>
 <link rel="stylesheet" href="../static/editor/examples/css/style.css"/>
 <link rel="stylesheet" href="../static/editor/css/editormd.css"/>
 	 {{template "header"}}	<!--> 在 T.Header.tpl 里面 ， Header 的模板<-->
</head>

<body>
	 {{template "navbar-image"}}
	 {{template "navbar" .}}
		
		<div class="container post-layout">
			<article class="wenzhang">
				<div class="page-header">
					
					<a href="/topic/query?id={{.Id}}">
						<h3> {{.Topic.Title}}</h3>
					</a>
					<h6 class="text-muted">Post on {{.Topic.CreatedTime}}</h6>
				</div>
				
			   <div class="editormd-preview-container editormd-preview-theme-dark" style="display: block;">	
				<div class="markdown-body editormd-preview-container " previewcontainer="true" style="padding: 20px;">
				<!--
				<div class="markdown-body editormd-preview-container editormd-preview-active" previewcontainer="true" style="padding: 20px;">
				-->
				<p>
					{{str2html .Topic.Content_html}}
				</p>
				</div>
				</div>
			</article>
			{{if .Cookie}}
			<div>
			<a href="/update?id={{.Topic.Id}}">
				<h5>修改</h5>
			</a>
			<a href="/update/delete?id={{.Topic.Id}}">
				<h5>删除</h5>
			</a>
			</div>
			{{end}}
		</div>
	 
</body>